package hao.itheima.mapper;

import hao.itheima.pojo.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper // 交给IOC容器进行管理
public interface LogMapper {
    /**
     * 分页查询
     * @return
     */
    @Select("select l.*, e.name operateEmpName from operate_log l left join emp e on l.operate_emp_id = e.id")
    List<OperateLog> findpage();
}
